function getCurrentPagesApi(){
	var pages = getCurrentPages().pop();
	// console.log(pages);
	var route = pages.route;
	var options = pages.options;
	// 拼接url的参数
	var url = route + '?'
	for(var key in options){
		url += key + "=" + options[key] + "&"
	}
	return url
}

module.exports = {
	getCurrentPagesApi: getCurrentPagesApi
}